CloudSink = {
    ajax: function (url, data, success, fail) {
        var load = layer.load(0, {shade: [0.1, '#fff']});
        jQuery.ajax({
            url: url,
            data: data,
            type: (data === null || data === undefined) ? 'get' : 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                layer.close(load);
                if (typeof (success) === 'function') {
                    success(data)
                }
            },
            error: function (data) {
                layer.close(load);
                if (typeof (fail) === 'function') {
                    fail(data)
                } else {
                    layer.msg('服务器信息错误');
                }
            }
        })
    }
};